package com.ebocy.hammer.core.message;

import com.ebocy.hammer.core.constants.GameMessageCode;

public class S2CExitGameMessage extends AbstractS2CMessage {
	private long gamePlayerId;

	public S2CExitGameMessage(long gamePlayerId) {
		this.gamePlayerId = gamePlayerId;
	}

	@Override
	protected void writeMessage() {
		writeString(String.valueOf(gamePlayerId));
	}

	@Override
	public short getMessageCode() {
		return GameMessageCode.LOGOUT;
	}

}
